package com.dubbo.demo.controller;

import com.dubbo.dubboapi.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class HelloWorld {

    @Autowired
    private DemoService demoService;

    @RequestMapping("t")
    public String test1(){
        return demoService.helloWorld("t");
    }
}
